<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    欢迎 <p></p> 进入首页！
</body>
<script>
    var uname = location.search.substr('1',);
    uname = uname.split('=');
    var p = document.querySelector('p');
    p.innerHTML = uname[1];
    console.log(uname);
</script>

</html>